/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.toools.gwt.wmc.client.waste;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.Collection;
import org.toools.gwt.widget.client.bc.TooolsServiceAsync;
import org.toools.gwt.wmc.jpa.Waste;

/**
 *
 * @author Manuel
 */
public interface WasteServiceAsync extends TooolsServiceAsync{

    void getWasteByID(Integer id, AsyncCallback<Waste> callback);
    void getWastes(AsyncCallback<Collection<Waste>> callback);

    void create( Waste w, AsyncCallback<Waste> callback );
    void update( Waste w, AsyncCallback<Boolean> callback );
    void delete( Waste w, AsyncCallback<Boolean> callback );
}
